import request from '@/utils/request'

// 查询均价买卖列表
export function listAvebuysell(query) {
  return request({
    url: '/binance/avebuysell/list',
    method: 'get',
    params: query
  })
}

// 查询均价买卖详细
export function getAvebuysell(code) {
  return request({
    url: '/binance/avebuysell/' + code,
    method: 'get'
  })
}

// 新增均价买卖
export function addAvebuysell(data) {
  return request({
    url: '/binance/avebuysell',
    method: 'post',
    data: data
  })
}

// 修改均价买卖
export function updateAvebuysell(data) {
  return request({
    url: '/binance/avebuysell',
    method: 'put',
    data: data
  })
}

// 删除均价买卖
export function delAvebuysell(code) {
  return request({
    url: '/binance/avebuysell/' + code,
    method: 'delete'
  })
}
